<?php
/**
 * ExtCheckbox class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtCheckbox extends ExtField
{
    /**
     * Gets the value of ExtJS boxLabel property
     * @return String 
     */
    public function getBoxLabel()
    {
    	return $this->getConfig("boxlabel");
    }

    /**
     * Sets the value of ExtJS boxLabel property
     * @param String $value 
     */
    public function setBoxLabel($value)
    {
    	$this->setConfig("boxlabel",$value);
    }

    /**
     * Gets the value of ExtJS checked property
     * @return Boolean 
     */
    public function getChecked()
    {
    	return $this->getConfig("checked");
    }

    /**
     * Sets the value of ExtJS checked property
     * @param Boolean $value 
     */
    public function setChecked($value)
    {
    	$this->setConfig("checked",$value);
    }

    /**
     * Gets the value of ExtJS fieldClass property
     * @return String 
     */
    public function getFieldClass()
    {
    	return $this->getConfig("fieldclass");
    }

    /**
     * Sets the value of ExtJS fieldClass property
     * @param String $value 
     */
    public function setFieldClass($value)
    {
    	$this->setConfig("fieldclass",$value);
    }

    /**
     * Gets the value of ExtJS focusClass property
     * @return String 
     */
    public function getFocusClass()
    {
    	return $this->getConfig("focusclass");
    }

    /**
     * Sets the value of ExtJS focusClass property
     * @param String $value 
     */
    public function setFocusClass($value)
    {
    	$this->setConfig("focusclass",$value);
    }

    /**
     * Gets the value of ExtJS inputValue property
     * @return String 
     */
    public function getInputValue()
    {
    	return $this->getConfig("inputvalue");
    }

    /**
     * Sets the value of ExtJS inputValue property
     * @param String $value 
     */
    public function setInputValue($value)
    {
    	$this->setConfig("inputvalue",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'boxlabel' => 'boxLabel',
            'fieldclass' => 'fieldClass',
            'focusclass' => 'focusClass',
            'inputvalue' => 'inputValue'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'check' => array('sender','checked')
        ));


        $this->setXType('checkbox');
        $this->setXClass('Ext.form.Checkbox');
    }    
}
?>